package com.dingding.common.core.exception.bussiness;

/**
 * @Description:业务异常的枚举
 * @author fengshuonan
 * @date 2016年8月29日 下午1:31:02
 * @version 叮叮搭车
 * @since 2.4
 */
public enum BizExpEnum {

	/**
	 * 活动相关
	 */
	PHONE_CODE_TOO_FAST(500,"发送手机验证码频率过快"),
	NO_ACTIVITY_GIFT(500,"没有该活动的礼品记录"),
	GIFT_NOT_ENOUGH(500,"奖品已发放完毕，注册失败"),
	ADD_USER_ERROR(500,"注册用户出现异常"),
	SHARE_KEY_ERROR(500,"用户请求数据异常"),//请求的shareKey有问题
	WRONG_PHONE_CODE(500,"手机号验证码错误"),
	NO_SUCH_USER_IN_USERLOGIN(500,"该用户未注册"),//userlogin表中没有这个手机号
	NO_USER_ACT_GIFT(500,"查找不到用户所选的礼品的记录"),
	NO_USER_ACTIVITYSHARE(500,"没有该用户的活动分享记录"),
	GIFT_NUM_NOT_ENOUGH(500,"礼品数量不充足"),
	NO_THIS_GIFT(500,"没有该礼品"),
	EMPTY_ACTIVITY(500,"没有此活动"),
	EMPTY_ACTI_BANNER(500,"空的活动详情banner图片"),
	
	
	NO_THIS_USER(600,"没有此用户"),
	NO_THIS_ORDER(601,"没有该订单"),
	USER_VEHI_CAR_STATUS_ERROR(603,"用户的审核状态为审核中或审核通过，不能认证"),
	VEHI_IS_BE_REGED(604,"该车辆已经已被其他用户使用"),
	NOT_FOUND_USERS_VEHICLEINFO(605,"找不到用户的车辆登录信息"),
	NOT_FOUND_TRAVEL_AGC(606,"旅游公司查询不到"),
	TRAVLE_AGC_NOUSE(607,"旅游公司作废"),
	TRAVLE_AGC_FEE_NOT_ENOUGH(608,"旅游公司费用不够"),
	TABLE_ITEM_IS_NULL(609,"表数据为空"),
	HAVE_MATCHING_ORDER(610,"有进行中订单"),
	TELE_CODE_OVERTIME(402,"验证码超时"),
	
	GET_ZUSER_PHONE_ERROR(500,"获取不到主叫用户电话"),
	GET_BUSER_PHONE_ERROR(500,"获取不到被叫用户电话"),
	TINET_ERROR(500,"天润融通号码保护api调用错误"),
	
	GET_BRANDS_ERROR(500,"获取所有的车辆品牌或车辆型号信息出错，数量为空！"),
	
	ILLEGAL_OPERATION(611,"非法操作"),
	FAILED_UPLOAD_IMG(612,"上传失败"),
	DRIVER_IS_WATING_DEAL(613,"您的信息处于审核中"),
	DRIVER_IS_PASSED(614,"您的信息已通过审核"),
	
	//渠道相关
	REGISTER_CHANNEL_IS_INVALID(615,"注册渠道无效");
	
	private int code; 		// 状态码

	private String message; // 状态码消息

	private BizExpEnum(int code, String message) {
		this.code = code;
		this.message = message;
	}

	public int getCode() {
		return code;
	}

	public void setCode(int code) {
		this.code = code;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}
}
